package com.example.computer_exam_training_sys.service.impl;

import com.example.computer_exam_training_sys.mapper.UserFavoritesVOMapper;
import com.example.computer_exam_training_sys.service.UserFavoritesVOService;
import com.example.computer_exam_training_sys.vo.UserFavoriteDetailVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserFavoritesVOServiceImpl implements UserFavoritesVOService {
    @Autowired
    private UserFavoritesVOMapper userFavoritesVOMapper;

    @Override
    public List<UserFavoriteDetailVO> getAllUserFavoriteDetails() {
        return userFavoritesVOMapper.selectAllUserFavoriteDetails();
    }

    @Override
    public List<UserFavoriteDetailVO> getUserFavoriteDetailsByUserId(int userId) {
        return userFavoritesVOMapper.selectUserFavoriteDetailsByUserId(userId);
    }
}
